<template>
  <div class="app">
    <nav>
      <router-link to="/">首页</router-link> |
      <router-link to="/preview">组件预览</router-link>
    </nav>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
.app {
  font-family: Arial, sans-serif;
}

nav {
  padding: 20px;
  background: #f5f5f5;
}

nav a {
  margin: 0 10px;
  color: #333;
  text-decoration: none;
}

nav a.router-link-active {
  color: #42b983;
}
</style> 